<?php

//Define the core paths
//Define them as absolute paths to ensure that the require_once works as intended
//DIRECTORY_SEPARATOR is a pre-defined PHP constant (\ for Windows and / for *nix)

defined('DS')? null : define('DS', DIRECTORY_SEPARATOR);
	if(DIRECTORY_SEPARATOR == '\\'){
		defined('SYSTEM_ROOT')? null : define('SYSTEM_ROOT', 'C:'.DS.'wamp'.DS.'www'.DS.'photo_gallery'.DS);
	}
	else{
		defined('SYSTEM_ROOT')? null : define('SYSTEM_ROOT', DS.'var'.DS.'www'.DS.'photo_gallery'.DS);
	}
defined('LIB')? null : define('LIB', SYSTEM_ROOT.'includes'.DS);
//This will be used for the style sheets
defined('SITE_ROOT')? null : define('SITE_ROOT', '/photo_gallery/');
defined('STYLE_SHEET_PATH')? null : define('STYLE_SHEET_PATH',SITE_ROOT.'public/stylesheets/');

//load the config file first 
require_once LIB.'config.php';
//load basic functions so that everything after can use them
require_once LIB.'functions.php';
//load core objects
require_once LIB.'session.php';
require_once LIB.'database.php';
require_once LIB.'database_object.php';
//load database related classes
require_once LIB.'user.php';

?>